@extends('layouts.master')
@section('head')
	@parent
	<title>FACT - Events</title>
@stop

@section('content')		
	<div class="main">
		<!-- if admin, show create link -->
		@if(Auth::user()->first_name == 'Admin')
			<div class="create">
				<a href="/events/create">Create New Event</a>
			</div>
		@endif

      	<div class="shop_top">
			<div class="container">
				@foreach ($events as $event)
					<div>
						<h4 class="title"><a href="/events/{{$event->id}}">{{ $event->title }}</a></h4>
						<p class="cart">{{ date("F d, Y l", strtotime($event->date)) }} | {{ $event->time }}</p>
						<br>
						<br>
					</div>
				@endforeach
				
				
	     	</div>
	   	</div>
	  </div>			
@stop